<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //使用立即函数
        var Observe =(function(){
            var message = {}
            return {
                //注册订阅信息模块
                register:function(){},
                //发布订阅信息模块
                fire:function(){},
                //取消订阅信息模块
                remove:function(){}
            }
        })()

    </script>
</body>
</html>